﻿using Quartz.NET.Services;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Quartz.NET.Jobs
{
    public class SendEmailJob : IJob
    {
        private readonly IEmailService _emailService;

        public SendEmailJob(IEmailService emailService)
        {
            _emailService = emailService;
        }
        public async Task Execute(IJobExecutionContext context)
        {
            await _emailService.SendEmailAsync("11727146@qq.com", "Hello World!");
        }
    }
}
